package frame.options.physicalNetworks.create;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.border.EmptyBorder;

@SuppressWarnings("serial")
public class CreatePhysicalNetworksFinishPanel extends JPanel
{
	private JLabel informationLabel;
	public JLabel getInformationLabel(){ return informationLabel; }
	public void setInformationLabel( JLabel informationLabel ){ this.informationLabel = informationLabel; }
	
    public CreatePhysicalNetworksFinishPanel()
    {
    	this.setLayout( new BorderLayout() );
        this.add( this.titlePanel(), BorderLayout.NORTH );
        this.add( this.contentPanel(), BorderLayout.CENTER );
    }
    
    private JPanel titlePanel()
    {
    	JLabel titleLabel = new JLabel( "Random physical networks" );
        titleLabel.setFont( new Font( "MS Sans Serif", Font.BOLD, 14 ) );
        titleLabel.setBorder( new EmptyBorder( new Insets( 10, 10, 10, 10 ) ) );
        titleLabel.setOpaque( true );
        
        JSeparator separator = new JSeparator();
        
        JPanel titlePanel = new JPanel();
        titlePanel.setLayout( new java.awt.BorderLayout() );
        titlePanel.setBackground( Color.gray );
        titlePanel.add( titleLabel, BorderLayout.CENTER );
        titlePanel.add( separator, BorderLayout.SOUTH );
        
        return titlePanel;
    }
    
    private JPanel contentPanel()
	{
        JPanel contentPanel = new JPanel();
        contentPanel.setBorder( new EmptyBorder( new Insets( 50, 50, 50, 50 ) ) );
        contentPanel.add( new JLabel( "Press \"Finish\" to incorporate created random physical networks" ) );
        
        return contentPanel;
	}
    
}